// 操作类型
export const OPERATE_TYPES = [
  { value: '1', label: '提现' },
  { value: '2', label: '代付' },
  { value: '3', label: '充值' },
];

export const getOperateTypeLabel = (value) => {
  const operateType = OPERATE_TYPES.find((item) => String(item.value) === String(value));
  return operateType ? operateType.label : "";
};


// 订单状态
export const ORDER_SATUS = [
  { value: '1', label: '进行中'},
  { value: '5', label: '成功' },
  { value: '3', label: '失败' },
];


export const getOrderStatusLabel = (value) => {
  const orderStatus = ORDER_SATUS.find((item) => String(item.value) === String(value));
  return orderStatus ? orderStatus.label : "";
};


// 渠道开通状态
export const CHANNEL_OPEN_STATUS = [
  {
    value: 1,
    status: "申请中",
  },
  {
    value: 0,
    status: "未申请",
  },
  {
    value: 2,
    status: "已通过"
  },{
    value: 3,
    status: "已拒绝"
  }
];

export const getChannelOpenStatusLabel = (value) => {
  const channelOpenStatus = CHANNEL_OPEN_STATUS.find((item) => item.value === value);
  return channelOpenStatus ? channelOpenStatus.status : "";
};